package com.wuwei.business.mapper;

import com.wuwei.business.domain.BusAttachment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 内容: SSM
 * 作者: weishao
 */
public interface BusAttachmentMapper {
    int deleteByPrimaryKey(Integer fileId);

    int insert(BusAttachment record);

    int insertSelective(BusAttachment record);

    BusAttachment selectByPrimaryKey(Integer fileId);

    int updateByPrimaryKeySelective(BusAttachment record);

    int updateByPrimaryKey(BusAttachment record);

    int saveBatch(@Param("busAttachments") List<BusAttachment> busAttachments);

    List<String> selectListByCarNum(@Param("carNumber") String carNumber);

    int delImgByCarNum(@Param("carNumber") String carNumber, @Param("username") String username);

    int delImgByCarNumBatch(@Param("carNums") List<String> carNums, @Param("username") String username);

    List<String> selectImgByCarNum(String carNumber);
}